
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 
?>

<?php
//Get QUIZ
if (!strcmp (strtolower($data->display_type), strtolower('quiz'))) {
	$i = 0;
	$count_list = count($data->arrlists);
?>
	
	<div class="x-banner-hang"><h2>C&Aacute;C &#272;&#7872; THI TR&#7854;T NGHI&#7878;M</h2></div>
	<div class="x-box-sanpham">
		<div class="list_content_sp">
			<ul>
			<?php foreach ($data->arrlists as $item) :  ?>
				<li class="clearfix">
					<div class="colum-images-left"><img src="<?php echo $item->thumb; ?>" border="0" width="103px" height="152px" alt="<?php echo $item->title; ?>" /></div>
					<div class="colum-tex-right">
						<h2><a href="#"><?php echo $item->title; ?></a></h2>
						<div class="marker_top">	
								<p><samp><?php echo $item->introtext; ?></samp></p><br/>
								<samp><b>Th&#7901;i gian l&agrave;m: <?php echo $item->time_limit; ?> ph&uacute;t</b></samp><br />
						 </div>
						 <p class="marker_under"><a href="<?php echo $item->link; ?>">B&#7855;t &#273;&#7847;u l&agrave;m
</a></p>
					</div>
				</li>
			<?php endforeach; ?>                                    	
			</ul>
		</div>
	</div>
	
	
<?php } else if (!strcmp (strtolower($data->display_type), strtolower('vertical'))) {
	
	$i = 0;
	$count_list = count($data->arrlists);
	?>
	<div class="x-inset-content">
	<div class="bg-sp-top1"></div><div class="bg-sp-top2"></div>
								
	<?php foreach ($data->arrlists as $item) :  ?>
		<?php $i++; ?>
		<?php if($i == $count_list) : ?>
			<div class="box-item">
		<?php else : ?>	
			<div class="box-item">
		<?php endif; ?>	
			<?php if($params->get('thumb')==1 && $item->thumb) : ?>
			<div class="colum-images">
				<a href="<?php echo $item->link; ?>"><img src="<?php echo $item->thumb; ?>" border="0" alt="<?php echo $item->title; ?>" /></a>
			</div>
			<?php endif; ?>
			<div class="colum-tex">
				<h4><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></h4>
				<?php if($params->get('showintro')==1) : ?>
					<?php echo $item->introtext; ?>
				<?php endif; ?>
			</div>
		
			<?php if($params->get('showdate')==1) : ?>
			<span><?php echo $item->date; ?></span>
			<?php endif; ?>
			<?php if($params->get('readmore')==1) : ?><a href="<?php echo $item->link; ?>" class="readone"><?php echo JText::sprintf('Read more...'); ?></a><?php endif; ?>
		</div>
		
	<?php endforeach; ?>
	<div class="bg-sp-bottom1"></div>
		<div class="x-next-sp">
		<a href="">Xem t&#7845;t c&#7843;</a>
		</div>	
	<div class="bg-sp-bottom2"></div>

<?php } else if (!strcmp (strtolower($data->display_type), strtolower('horizontal'))) { 
			$i = 0;
			$count_list = count($data->arrlists);
?>

			<div class="x-itembox clearfix"><div class="bg-sp-top1"></div><div class="bg-sp-top2"></div>
			<div class="x-next"><a href=""><img src="<?php echo _TEMPLATE_URL; ?>images/home/next-sp.gif" /></a></div>
<!--							<marquee direction="left" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3">
-->								<ul class="itembox-sanpham clearfix">
	<?php foreach ($data->arrlists as $item) :  ?>
					<li class="menu-sanpham">
						<div class="menu-sanpham-item" >
							<div class="menu-border-img"><img src="<?php echo $item->thumb; ?>" border="0" alt="<?php echo $item->title; ?>" /></div>
							<div class="tex-center"><a href=""><samp><?php echo $item->title; ?></samp></a></div>
							<div class="tex-center center_under">
								<?php if($params->get('showintro')==1) : ?>
									<?php echo $item->fulltext; ?>
								<?php endif; ?>
							</div>
						</div>
					</li>
	<?php endforeach; ?>
				</ul>
			<div class="bg-sp-bottom1"></div><div class="bg-sp-bottom2"></div>
		</div>	
<?php } ?>
